package com.yima.baseproj.module.app.kindergarten;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yima.baseproj.module.sys.kindergarten.KindergartenEntity;
import org.springframework.stereotype.Service;

@Service
public class AppKgService extends ServiceImpl<AppKindergartenMapper, KindergartenEntity> {

    public KindergartenEntity findByKgCode(String kgCode){

        return baseMapper.selectOne(new QueryWrapper<KindergartenEntity>()
                        .eq("kg_code",kgCode));
    }

}
